package com.zby.springbootdemo.dao;

import com.zby.springbootdemo.entity.sc;
import org.apache.ibatis.jdbc.SQL;

public class scSqlProvider {

    public String insertSelective(sc record) {
        SQL sql = new SQL();
        sql.INSERT_INTO("sc");
        
        if (record.getSno() != null) {
            sql.VALUES("sno", "#{sno,jdbcType=INTEGER}");
        }
        
        if (record.getCno() != null) {
            sql.VALUES("CNO", "#{cno,jdbcType=INTEGER}");
        }
        
        return sql.toString();
    }
}